<?php



# Set Timezone
date_default_timezone_set('Asia/Shanghai');
# Error reporting
#error_reporting(1);
# Start Session
session_start();

# Set Paths
define("LIB_PATH", "../lib");
define("APP_PATH", "../app");

set_include_path('.' . PATH_SEPARATOR .
    LIB_PATH . PATH_SEPARATOR .
    APP_PATH . PATH_SEPARATOR .
    get_include_path());



require_once "core/front.class.php";
require_once "helpers/chrome_debug_helper.php";


# get controller
$app = FrontController::getInstance();

# register plugins
require_once "plugins/auth_plugin.php";
$app->broker()->registerPlugin(new AuthPlugin());


# start MVC
$app->mvcRun();




